package com.sangeng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sangeng.domain.entity.Tag;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;


/**
 * 标签(Tag)表数据库访问层
 *
 * @author makejava
 * @since 2024-01-18 10:22:21
 */
@Component
public interface TagMapper extends BaseMapper<Tag> {
    //删除标签，注意是逻辑删除，所以不能使用mybatisplus提供的，我们要自己使用mybatis写SQL语句
    @Update("update sg_tag set del_flag = 1 where id = #{id}")
    int myUpdateById(@Param("id") Long id);
}
